import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import Register from "../views/Register.vue"
import Login from "../views/Login.vue"
import Wode from "../views/Wode.vue"
import Dingdan from "../views/Dingdan.vue"
import Ceshi from "../views/xhy-ceshi-page.vue"
import Shitang from "../views/Shitang.vue"
import Qinshi from "../views/Qinshi.vue"
import Ningmeng from "../views/Ningmeng.vue"
import Store from "../views/Store.vue"



Vue.use(VueRouter)

const routes = [
  {
    path:"/ceshi",
    component:Ceshi
  },
  {
    path: '/',
    component: Index
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path:"/register",
    component:Register
  },
  {
    path:"/login",
    component:Login
  },
  
  {
    path:"/wode",
    component:Wode
  },
  {
    path:"/dingdan",
    component:Dingdan
  },
  {
    path:"/shitang",
    component:Shitang
  },
  {
    path:"/qinshi",
    component:Qinshi
  },
  {
    path:"/ningmeng",
    component:Ningmeng
  },
  {
    path:"/store",
    component:Store
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
